home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / channel_signoff < prev    next >
Encoding:
Text File  |  2001-03-21  |  959 b   |  31 lines

  1. Synopsis:
  2.    on [<modes>]channel_signoff [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client observes someone signoff from
  6.    irc.  It is not hooked when the client itself signs off.
  7.  
  8. Parameters:
  9.    $0    the channel the signoff was observed on
  10.    $1    the nickname of the person leaving irc
  11.    $2-   signoff message
  12.  
  13. Examples:
  14.    To distinguish signoffs from one channel to another:
  15.       on ^channel_nick "*" {
  16.          if ( [$0] == C ) {
  17.             echo *** Signoff by $1 \($2-\)
  18.          } {
  19.             echo *** Signoff by $1 from $0 \($2-\)
  20.          }
  21.       }
  22.    
  23. See Also:
  24.    on(5) quit, signoff; quit(1)
  25.  
  26. Other Notes:
  27.    This hook is not triggered by the client exiting irc.  Use the QUIT hook
  28.    to perform an action when the client quits.  This hook differs from the
  29.    SIGNOFF hook in that this is triggered for every channel on which the
  30.    person is observed signing off.
  31.